package com.seckill.dao;

import com.seckill.domain.MiaoshaUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

/**
 * @author yangjunwei
 * @date 2021/10/29 3:41 下午
 */
@Mapper
public interface MiaoshaUserDao {

    @Select("SELECT * FROM miaosha_user WHERE id=#{id}")
    MiaoshaUser selectMiaoshaUserById(Long id);

    @Update("UPDATE miaosha_user SET password = #{password} WHERE id =#{id}")
    void updateMiaoshaUser(MiaoshaUser miaoshaUser);


}
